package com.rd.student.dashuju.wangbo.day08_01;

import java.util.Arrays;

public class Exercise1 {

    public static void main(String[] args) {
         int[] arr = {1,3,5,7,9,11,13,15,17,0};
         methodTest(arr);
    }

    public static void methodTest(int[] arr){
        int temp = 0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] == 9){
                temp = arr[i+1];
                arr[i+1] = 10;
            }
            if (i > 5){
                arr[i] = temp;
                temp+=2;
            }
        }
        System.out.println(Arrays.toString(arr));
    }
}
